-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phase 2 of GW development #1117
base: cam_development
Are you sure you want to change the base?
Phase 2 of GW development #1117
Conversation
Merge pull request ESCOMP#1147 from jedwards4b/timestamp_in_rpointer_name
Merge pull request ESCOMP#1203 from brian-eaton/misc06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might have a few more changes, but submitting it for now
!!$OMP PARALLEL NUM_THREADS(horz_num_threads), DEFAULT(SHARED), PRIVATE(nets,nete,hybrid,ie,ncols,frontgf_thr,frontga_thr) | ||
! hybrid = config_thread_region(par,'horizontal') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have these been tested?
|
||
|
||
|
||
!++jtb (12/31/24) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK to remove these comments?
@@ -3906,6 +3909,10 @@ if ($do_gw_rdg_beta) { | |||
add_default($nl, 'gw_prndl'); | |||
} | |||
|
|||
if ($do_gw_rdg_resid) { | |||
add_default($nl, 'effgw_rdg_resid', 'val'=>'1.0D0'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be consistent and set this via namelist_defaults?
<entry id="use_gw_rdg_resid" type="logical" category="gw_drag" | ||
group="gw_drag_nl" valid_values="" > | ||
JULIO - need to add comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to describe this
!++ jtb (12/24/2024) | ||
! This is confusing. Not sure when if ever this was needed. | ||
! Check if fcrit2 was set. | ||
!call shr_assert(fcrit2 /= unset_r8, & | ||
! "gw_drag_readnl: fcrit2 must be set via the namelist."// & | ||
! errMsg(__FILE__, __LINE__)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this now?
end if | ||
if ( source_type==2 ) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could else if to save checking when source_type==1
@@ -419,15 +432,20 @@ pure function index_of_nearest(x, grid) result(idx) | |||
end function index_of_nearest | |||
|
|||
!!!!!!!!!!!!!!!!!!!!!!!!!!! | |||
pure function shcu_flux_src (xpwp_shcu , ncol, pverx, alpha_gw_movmtn ) result(xpwp_src) | |||
subroutine shcu_flux_src (xpwp_shcu , ncol, pverx, alpha_gw_movmtn, xpwp_src, steering_level, launch_level ) !! result(xpwp_src) | |||
!!! use gw_common, only: pver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
|
||
!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
subroutine vorticity_flux_src (vorticity , ncol, pverx, alpha_gw_movmtn, vort_src, steering_level, launch_level ) !! result(xpwp_src) | ||
!!! use gw_common, only: pver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
real(r8) :: scale_factor | ||
integer :: k, nlayers | ||
|
||
steering_level = pverx - 20 !++ ????? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment - remove?
@@ -265,6 +299,22 @@ subroutine d_p_coupling(phys_state, phys_tend, pbuf2d, dyn_out) | |||
deallocate(frontgf_phys) | |||
deallocate(frontga_phys) | |||
end if | |||
!++jtb 01/20/25 | |||
if (use_gw_movmtn_pbl) then | |||
!$omp parallel do num_threads(max_num_threads) private (lchnk, ncols, icol, ilyr, pbuf_chnk, pbuf_vort4gw) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OMP tested?
Closes #1115